-
Notifications
You must be signed in to change notification settings - Fork 764
Updates for 5922 - Staff can send Group messages #5957
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
smithellis
commented
Apr 16, 2024
- Fixes privelege escalation - 1721
- Fixes bolded message text - 1726
- Removes unneeded Avatars - 1724
- Don't show a To if there is no To - 1723
- Attempts to resolve 502 issue - 1720
* Fixes privelege escalation - 1721 * Fixes bolded message text - 1726 * Removes unneeded Avatars - 1724 * Don't show a To if there is no To - 1723 * Attempts to resolve 502 issue - 1720
879d99e
to
b161aa0
Compare
set_of_user_pks_to_email_private_message = set( | ||
Setting.objects.filter( | ||
user__in=receivers, name="email_private_messages", value=True | ||
).values_list("user__pk", flat=True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just for the sake of knowledge sharing, .values_list("user", flat=True)
is equivalent to .values_list("user__pk", flat=True)
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah - yes, I left that when troubleshooting why this was failing. It was the value=True
bit that was missing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch on the value=True
!